package com.xinda.admin.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xinda.admin.dao.ChartMapper;
import com.xinda.admin.vo.CountAdminByMonthVO;
import com.xinda.admin.vo.CountMemberByMonthVO;
import com.xinda.admin.vo.CountMoneyByMonthVO;
import com.xinda.admin.vo.CountOrderByMonthVO;
import com.xinda.admin.vo.CountProviderByMonthVO;

/**
* @author 作者 E-mail:
* @version 创建时间：2017年8月30日 下午4:03:21
* 类说明
*/
@Service
public class ChartService {
	@Resource
	private ChartMapper chartMapper;
	
	/**
	 * 按月统计管理员
	 */
	public List<CountAdminByMonthVO> countAdminByMonth() {
		return chartMapper.countAdminByMonth();
		
	}
	
	/**
	 * 按月统计用户
	 */
	public List<CountMemberByMonthVO> countMemberByMonth() {
		return chartMapper.countMemberByMonth();
		
	}
	
	/**
	 * 按月统计服务商
	 */
	public List<CountProviderByMonthVO> countProviderByMonth() {
		return chartMapper.countProviderByMonth();
		
	}
	
	
	/**
	 * 按月统计交易额度
	 */
	public List<CountMoneyByMonthVO> countMoneyByMonth() {
		return chartMapper.countMoneyByMonth();
		
	}
	
	
	/**
	 * 按月统计订单数量
	 */
	public List<CountOrderByMonthVO> countOrderByMonth() {
		return chartMapper.countOrderByMonth();
		
	}
	
	/**
	 * 统计分类
	 */
	public Integer countProductOne() {
		return chartMapper.countProductOne();
	}
	public Integer countProductTwo() {
		return chartMapper.countProductTwo();
	}
	public Integer countProductThree() {
		return chartMapper.countProductThree();
	}
	public Integer countProductFour() {
		return chartMapper.countProductFour();
	}
}
